package com.wythe.DMA2_抽象工厂.Factory;

import com.wythe.DMA2_抽象工厂.DM2.AComputerFactory;
import com.wythe.DMA2_抽象工厂.DM2.ProduceKeyBord;
import com.wythe.DMA2_抽象工厂.DM2.ProduceMouse;
import com.wythe.DMA2_抽象工厂.KeyBoard.LeiBoKeyBord;
import com.wythe.DMA2_抽象工厂.Mouse.LuoJiMouse;

/**
 * <p>联想电脑生产商 == 电脑型号：02【固定键盘和鼠标生产商】</p>
 *
 * @Author 二师兄
 * @Blob https://blog.csdn.net/qq_35851780?spm=1001.2101.3001.5343
 * @Date Created on 上午 11:47 2018-11-6
 * @Version V.1.0.1
 */
public class LianXiang02Factory implements AComputerFactory {

    @Override
    public ProduceKeyBord createKeyBord() {
        // 使用雷柏的键盘
        return new LeiBoKeyBord();
    }

    @Override
    public ProduceMouse createMouse() {
        // 使用罗技的鼠标
        return new LuoJiMouse();
    }
}
